package com.tledu.zyf.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@WebServlet("/ajaxTest")
public class AjaxTestServlet extends HttpServlet {
	int i;

	public void m1() {

	}

	@Override
	protected void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		System.out.println("xxx");
		String id = request.getParameter("id");
		System.out.println(id);
		response.setContentType("text/html;charset=utf-8");
		response.getWriter().println("<p>加载成功~<p>");
		String color = "red";

		String bgColor = request.getParameter("bgColor");
		response.getWriter().println("<html>......<body bgColor='" + bgColor + "'></body></html>");
	}
}
